import * as React from "react";
import { List } from "immutable";

interface ListGroupButtonProps {
    items: List<React.ReactNode>
}

class ListGroup extends React.Component<ListGroupButtonProps> {
    constructor(items: ListGroupButtonProps) {
        super(items);
    }

    render() {
        return (
            <ul className="list-group">
                {this.props.items.map(item => (
                    <li className="list-group-item">
                        {item}
                    </li>
                ))}
            </ul>
        )
    }
}

export default ListGroup;